package generator.domain;

import java.io.Serializable;
import java.util.Date;

/**
 * 
 * @TableName activity
 */
public class Activity implements Serializable {
    /**
     * 
     */
    private String actId;

    /**
     * 
     */
    private String actName;

    /**
     * 
     */
    private String actTime;

    /**
     * 
     */
    private String actAddress;

    /**
     * 
     */
    private String actImage;

    /**
     * 
     */
    private Date actDatetime;

    /**
     * 
     */
    private String actDetail;

    /**
     * 
     */
    private String actPhone;

    private static final long serialVersionUID = 1L;

    /**
     * 
     */
    public String getActId() {
        return actId;
    }

    /**
     * 
     */
    public void setActId(String actId) {
        this.actId = actId;
    }

    /**
     * 
     */
    public String getActName() {
        return actName;
    }

    /**
     * 
     */
    public void setActName(String actName) {
        this.actName = actName;
    }

    /**
     * 
     */
    public String getActTime() {
        return actTime;
    }

    /**
     * 
     */
    public void setActTime(String actTime) {
        this.actTime = actTime;
    }

    /**
     * 
     */
    public String getActAddress() {
        return actAddress;
    }

    /**
     * 
     */
    public void setActAddress(String actAddress) {
        this.actAddress = actAddress;
    }

    /**
     * 
     */
    public String getActImage() {
        return actImage;
    }

    /**
     * 
     */
    public void setActImage(String actImage) {
        this.actImage = actImage;
    }

    /**
     * 
     */
    public Date getActDatetime() {
        return actDatetime;
    }

    /**
     * 
     */
    public void setActDatetime(Date actDatetime) {
        this.actDatetime = actDatetime;
    }

    /**
     * 
     */
    public String getActDetail() {
        return actDetail;
    }

    /**
     * 
     */
    public void setActDetail(String actDetail) {
        this.actDetail = actDetail;
    }

    /**
     * 
     */
    public String getActPhone() {
        return actPhone;
    }

    /**
     * 
     */
    public void setActPhone(String actPhone) {
        this.actPhone = actPhone;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Activity other = (Activity) that;
        return (this.getActId() == null ? other.getActId() == null : this.getActId().equals(other.getActId()))
            && (this.getActName() == null ? other.getActName() == null : this.getActName().equals(other.getActName()))
            && (this.getActTime() == null ? other.getActTime() == null : this.getActTime().equals(other.getActTime()))
            && (this.getActAddress() == null ? other.getActAddress() == null : this.getActAddress().equals(other.getActAddress()))
            && (this.getActImage() == null ? other.getActImage() == null : this.getActImage().equals(other.getActImage()))
            && (this.getActDatetime() == null ? other.getActDatetime() == null : this.getActDatetime().equals(other.getActDatetime()))
            && (this.getActDetail() == null ? other.getActDetail() == null : this.getActDetail().equals(other.getActDetail()))
            && (this.getActPhone() == null ? other.getActPhone() == null : this.getActPhone().equals(other.getActPhone()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getActId() == null) ? 0 : getActId().hashCode());
        result = prime * result + ((getActName() == null) ? 0 : getActName().hashCode());
        result = prime * result + ((getActTime() == null) ? 0 : getActTime().hashCode());
        result = prime * result + ((getActAddress() == null) ? 0 : getActAddress().hashCode());
        result = prime * result + ((getActImage() == null) ? 0 : getActImage().hashCode());
        result = prime * result + ((getActDatetime() == null) ? 0 : getActDatetime().hashCode());
        result = prime * result + ((getActDetail() == null) ? 0 : getActDetail().hashCode());
        result = prime * result + ((getActPhone() == null) ? 0 : getActPhone().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", actId=").append(actId);
        sb.append(", actName=").append(actName);
        sb.append(", actTime=").append(actTime);
        sb.append(", actAddress=").append(actAddress);
        sb.append(", actImage=").append(actImage);
        sb.append(", actDatetime=").append(actDatetime);
        sb.append(", actDetail=").append(actDetail);
        sb.append(", actPhone=").append(actPhone);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}